<html>

<head>

    <meta charset="UTF-8">

    <title>交互Demo</title>

    <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport">

</head>



<body>

getUserinfo:<br>



<input value="立即报名" type="button" onClick="baoming();" /><br>
<input value="详细信息" type="button" onClick="baoming1();" /><br>
<input value="你好" type="button" onClick="baoming2();" /><br>



<script>

/*var rs=window.om.getUserinfo();

document.getElementById('userinfo').innerHTML=rs;*/

var rs=window.demo.getUserinfo();

var obj = eval ("(" + rs + ")");

if(obj.status){

document.getElementById('userinfo').innerHTML=obj.data.nickname;

}


function baoming(){

if(window.demo.needLogin()){

location.href='http://www.cnblogs.com/greatverve/archive/2012/03/08/android-assets.html';

}

}

function baoming1(){

if(window.demo.getUserinfo()){

location.href='http://www.cnblogs.com/greatverve/archive/2012/03/08/android-assets.html';

}
}

function baoming2(){

if(window.demo.getData("红红火火")){



}

}


function baoming3(){

location.href='http://www.cnblogs.com/greatverve/archive/2012/03/08/android-assets.html';

}

</script>

</body>

</html>